body{
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(midnightblue, black);
}

.loader {
    font-size: 20px;
    width: 8em;
    height: 1.5em;
    display: flex;
    justify-content: space-between;
    transform: skewX(-25deg);
}

.loader span {
    width: 1em;
    background-color: deepskyblue;
    border-radius: 0.1em;
    animation: animate 0.8s infinite alternate;
    animation-delay: calc((var(--n) - 1) * 0.2s);
    animation-fill-mode: backwards;
}

@keyframes animate {
    from {filter: opacity(0); transform: scale(0.1);}
    to {filter: opacity(1); transform: scale(1);}
}

.loader span:nth-child(1) {--n: 1;}
.loader span:nth-child(2) {--n: 2;}
.loader span:nth-child(3) {--n: 3;}
.loader span:nth-child(4) {--n: 4;}
.loader span:nth-child(5) {--n: 5;}
.loader span:nth-child(6) {--n: 6;}
.loader span:nth-child(7) {--n: 7;}
